package com.zbkj.crmeb.supplier.dao;

import java.util.List;

import com.zbkj.crmeb.store.request.SupplierOpenShopProductRequest;
import com.zbkj.crmeb.store.request.SupplierOpenShopRequest;
import com.zbkj.crmeb.store.response.SupplierOpenShopProductResponse;
import com.zbkj.crmeb.store.response.SupplierOpenShopResponse;
import com.zbkj.crmeb.supplier.model.SupplierOpenShop;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 供应商一键开店表
 * 
 * @author lss
 * @email didiok@foxmail.com
 * @date 2024-11-18 17:36:49
 */
@Mapper
public interface SupplierOpenShopDao extends BaseMapper<SupplierOpenShop> {

    /**
     * 商品备案表
     * @param request
     * @return
     */
    List<SupplierOpenShopResponse> queryList(SupplierOpenShopRequest request);

    boolean updateShopMerIdById(@Param("shopMerId") Integer shopMerId, @Param("id") Integer id);

    boolean updateImgById(SupplierOpenShop supplierOpenShop);

    /**
     * 逻辑删除
     * @param id
     */
    Boolean updateDelById(Integer id);
}
